package com.xjk.ggbp_back.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_user")
public class CustomUser {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField()
    private String nickname;

    @TableField()
    private String username;

    @JsonIgnore
    @TableField()
    private String password;

    /**
     * 机构id
     */
    private Integer orgId;


    /**
     * 机构全id
     */
    private String orgFullId;

    private String sex;

    private String mobilephone;

    /**
     * 区号
     */
    private String code;

    private String telephone;

    private String email;

    private String department;

    /**
     * 职务
     */
    private String job;

    /**
     * 备注
     */
    private String remark;

    /**
     * 数据状态（是否禁用 0禁用 1未禁用）
     */
    private Integer status;


    /**
     * 声音是否开启
     * 0关闭 1开启
     */
    private Integer voiceStatus;

    /**
     * 操作人
     */
    private Integer opUid;

    /**
     * 操作时间
     */
    private LocalDateTime opTime;



//    @JsonIgnore
//    private LocalDateTime createDate;
//
//    @JsonIgnore
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateDate;
}